import React, { useContext, useEffect } from 'react';
import { AuthContext } from '../../contexts'

export const AddSong = () => {
  const {state, dispatch} = useContext(AuthContext)
  useEffect(() => {
    fetch('https://www.fastmock.site/mock/4f8c468ae7202f91850147535d932340/sbt/ali/login',
    {
      method: 'post',
      headers: {
        Authoeization: `${state.token.t}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        username: '1111111',
        password: '2222'
      })
    }
    )
  }, [])

  return (
    <>
      AddSong
    </>
  )
}